package com.xbxkj.commen.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 菜单资源表
 * </p>
 *
 * @author 张子艺
 * @since 2020-01-09
 */
@TableName("tr_admin_permission")
@ApiModel(value="AdminPermission对象", description="菜单资源表")
public class AdminPermission extends Model<AdminPermission> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @ApiModelProperty(value = "菜单或按钮名字")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "菜单URL")
    @TableField("menu_url")
    private String menuUrl;

    @ApiModelProperty(value = "菜单级别  1 一级菜单  2 二级菜单")
    @TableField("menu_lev")
    private Integer menuLev;

    @ApiModelProperty(value = "菜单样式")
    @TableField("menu_class")
    private String menuClass;

    @ApiModelProperty(value = "菜单类型  1 菜单  2按钮")
    @TableField("menu_type")
    private Integer menuType;

    @ApiModelProperty(value = "上级菜单")
    @TableField("parent_id")
    private String parentId;

    @ApiModelProperty(value = "排序")
    @TableField("menu_order")
    private Integer menuOrder;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }
    public Integer getMenuLev() {
        return menuLev;
    }

    public void setMenuLev(Integer menuLev) {
        this.menuLev = menuLev;
    }
    public String getMenuClass() {
        return menuClass;
    }

    public void setMenuClass(String menuClass) {
        this.menuClass = menuClass;
    }
    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }
    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AdminPermission{" +
            "id=" + id +
            ", name=" + name +
            ", menuUrl=" + menuUrl +
            ", menuLev=" + menuLev +
            ", menuClass=" + menuClass +
            ", menuType=" + menuType +
            ", parentId=" + parentId +
            ", menuOrder=" + menuOrder +
        "}";
    }
}
